<template>
  <div class="dashboard">
    <component :is="currentRole"></component>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import adminDashboard from './admin'
import editorDashboard from './editor'
export default {
  name: 'dashboard',
  computed: {
    ...mapGetters([
      'name',
      'roles'
    ])
  },
  data() {
    return {
      currentRole: 'adminDashboard'
    }
  },
  methods: {
  },
  mounted() {
      //
  },
  components: { adminDashboard, editorDashboard }
}
</script>

<style rel="stylesheet/scss" lang="scss">
.chart-container{
  position: relative;
  padding:20px;
  width: 100%;
  height:85vh;
}
.dashboard {
  // height: 100%;
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
